import { createRouter, createWebHistory } from "vue-router";

import Login from "../views/login/index.vue";
import Register from "../views/register/index.vue";
import Teacher from "../views/teacher/index.vue";
import Student from "../views/student/index.vue";
import Preview from "../views/preview/index.vue";
import Course from "../views/course/index.vue";
import Index from "../views/index/index.vue";
import UpdatePassword from "../views/updatePassword/index.vue";

export default createRouter({
  history: createWebHistory(),
  routes: [
    {
      path: "/",
      component: Index,
    },
    {
      path: "/login",
      component: Login,
    },
    {
      path: "/register",
      component: Register,
    },
    {
      path: "/updatePassword",
      component: UpdatePassword,
    },
    {
      path: "/teacher",
      component: Teacher,
    },
    {
      path: "/student",
      component: Student,
    },
    {
      path: "/preview",
      component: Preview,
    },
    {
      path: "/course",
      component: Course,
    },
  ],
});
